﻿var fs = require('fs');
// c创建一个可读流
var readerStream = fs.createReadStream('output.txt');
// 创建一个可写流
var writeStream = fs.createWriteStream('dream.txt');
// 管道读写操作
// 读取output.tex的内容，并将内容写入到dream.txt中
readerStream.pipe(writeStream)
console.log("执行完毕")
























